#include "adminsystem.h"
#include "ui_adminsystem.h"
#include "bookdialog.h"
#include "librarymanagement.h"
#include "userinformation.h"

AdminSystem::AdminSystem(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::AdminSystem)
{
    ui->setupUi(this);
}

AdminSystem::~AdminSystem()
{
    delete ui;
}

void AdminSystem::on_pushButtonBibliography_clicked()
{
    BookDialog *bd = new BookDialog;
    bd->show();
    close();
}

void AdminSystem::on_pushButtonUserInfo_clicked()
{
    UserInformation *uInfo = new UserInformation;
    uInfo->show();
    close();
}

void AdminSystem::on_pushButtonManagement_clicked()
{
    LibraryManagement *lm = new LibraryManagement;
    lm->show();
    close();
}

void AdminSystem::on_pushButton_clicked()
{
    close();
}
